package com.study.aop.enums;

/**
 * @author flwu
 * @date 2020/3/19 3:28 PM
 * @MOTTO 保持空杯和敬畏
 */
public enum ResponseEnum {

    SUCCESS(1, "成功"),
    FAIL(0, "失败"),
    OTHER(-1, "异常");

    private int code;
    private String desc;

    public int getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

    ResponseEnum(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }
}
